/*
    This a driver for OFCL Gyro-bot
    DATE:   2015-10-25
    AUTHOR: RUSHSAKER
*/

#ifndef GYRO_BOT_MOTOR_H
#define GYRO_BOT_MOTOR_H

#include "posix_qextserialport.h"

#define _AHEAD 1
#define _BACK  0

class gyro_bot_motor
{
public:
    gyro_bot_motor(char* port);
    Posix_QextSerialPort *MotorCom;
private:
    char * port;
//    Posix_QextSerialPort *MotorCom;
public:
    void  Connect();   //connect with the driver
    void GetVol();     //get voltage fo the driver
    void SetSPD_SVS(const char* mot,int spd);
    void SetSPD_SVR(int m1spd,int m2spd);
    void SetSPD_AVR();
    void test();
};

#endif // GYRO_BOT_MOTOR_H
